#define _CRT_SECURE_NO_WARNINGS

#pragma once
#include <iostream>
#include "Heap.h"

using namespace std;
int main()
{
	//kl::Heap<int> h;

	//h.Push(1);
	//h.Push(3);
	//h.Push(5);
	//h.Push(7);
	//h.Push(9);
	//h.Push(2);
	//h.Push(4);
	//h.Push(6);
	//h.Push(8);

	//while (!h.empty())
	//{
	//	cout << h.top() << endl;
	//	h.Pop();
	//}

	Heap h;
	HeapPush(&h, 0);
	HeapPush(&h, 2);
	HeapPush(&h, 4);
	HeapPush(&h, 6);
	HeapPush(&h, 8);
	HeapPush(&h, 1);
	HeapPush(&h, 3);
	HeapPush(&h, 5);
	HeapPush(&h, 7);
	HeapPush(&h, 9);

	cout << HeapTop(&h) << endl;
	HeapPrint(&h);

	return 0;
}